﻿<UserControl x:Class="Galnote.Control.VisitroAvatar"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" MouseEnter="UserControl_MouseEnter_1" MouseLeave="UserControl_MouseLeave_1">

	<UserControl.Resources>
		<Storyboard x:Key="StartTemplate">
			<DoubleAnimation Storyboard.TargetName="Box1" Storyboard.TargetProperty="Height" From="0" To="21" Duration="0:0:1"/>
		</Storyboard>
		<Storyboard x:Key="EndTemplate">
			<DoubleAnimation Storyboard.TargetName="Box1" Storyboard.TargetProperty="Height" From="21" To="0" Duration="0:0:1"/>
		</Storyboard>
	</UserControl.Resources>

	<Button x:Name="PreviewButton" Style="{StaticResource ResourceKey=GenericBtnStyle}" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
		<Grid>
			<Image Source="{Binding Path=Avatar}" Style="{StaticResource ResourceKey=GenericAvatarStyle}"/>
			<Border x:Name="Box1" Style="{StaticResource ResourceKey=GenericInfoBGstretchStyle}">
				<TextBlock Style="{StaticResource ResourceKey=GenericWebContentTextStyle}" Text="{Binding Path=UserID}" Foreground="White" FontWeight="Bold" HorizontalAlignment="Left" VerticalAlignment="Center"/>
			</Border>
		</Grid>
	</Button>
</UserControl>
